package com.zbw.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

@Data
@ApiModel("用户信息")
@TableName("user")
public class User {
    @ApiModelProperty("用户id")
    @TableId(type = IdType.AUTO)
    private Integer userId;

    @ApiModelProperty("用户名称")
//    @TableField(value="user_name",exist = true)
    private String userName;

    @ApiModelProperty("用户密码")
    private String userPwd;

    @ApiModelProperty("用户Email")
    private String userEmail;

    @ApiModelProperty("出生日期")
    @JsonFormat(pattern="yyyy.MM.dd HH:mm:ss",timezone="GMT+8")
    @TableField("birthday")
    private String birthdate;

    @ApiModelProperty("毕业学校")
    private String school;

    @ApiModelProperty("年龄")
    private String age;
    //salary

    @ApiModelProperty("年薪")
    private int salary;

}